package com.lecture.springlecture.service;

import com.lecture.springlecture.entity.User;
import com.lecture.springlecture.entity.UserEntity;

import java.util.List;

public interface UserService {
    User getUserByName(String name);

    void saveUser(User user);

    Boolean getAsync();

    /**
     * 查找所有
     * @return
     */
    List<UserEntity> getAll();
    /**
     * 根据id获取用户
     * @param id
     * @return
     */
    UserEntity getOne(Long id);
    /**
     * 新增用户
     * @param user
     */
    void insertUser(UserEntity user);
    /**
     * 修改用户
     * @param user
     */
    void updateUser(UserEntity user);

    void deleteAll1();

    void deleteAll12();


}
